package com.kaifamiao.service.impl;

import com.kaifamiao.dao.IAccountDao;
import com.kaifamiao.model.Account;
import com.kaifamiao.service.IAccountService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author lucien-ma
 * @date 2021/8/26
 * @apiNote
 */
@Service
public class IAccountServiceImpl implements IAccountService {

    @Resource
    private IAccountDao accountDao;


    @Override
    public List<Account> findAll() {
        return accountDao.findAll();
    }

    @Override
    public Account findById(Integer id) {
        return accountDao.findById(id);
    }
}
